package com.pn.warehouse.mapper;

import com.pn.warehouse.entity.Role;
import com.pn.warehouse.entity.RoleAuth;

import java.util.List;

public interface RoleAuthMapper {

    //根据角色id删除角色权限关系的方法
    public int removeRoleAuthById(Integer roleId);

    //根据角色id查询分配的所有权限id
    public List<Integer> findAuthIdsById(Integer roleId);

    //添加角色权限关系
    public int insertRoleAuth(RoleAuth roleAuth);

}
